package com.tianzj.boot.mvc.repository.system;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import com.tianzj.boot.mvc.entity.system.SysRole;

public interface SysRoleRepository extends JpaRepository<SysRole, Long>,JpaSpecificationExecutor<SysRole> {

	SysRole findByRoleName(String roleName);

	Page<SysRole> findByStatusNot(int i, Pageable pageable);

	List<SysRole> findByStatusNot(int i);
}
